package org.jeecg.modules.flower.vo;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.flower.entity.FlowerOutorderPre;
import org.jeecg.modules.flower.entity.FlowerOutorderPreinfo;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 预出库单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
@Data
@ApiModel(value="t_flower_outorder_prePage对象", description="预出库单主表")
public class FlowerOutorderPrePage {

	/**id*/
	@ApiModelProperty(value = "id")
	private String id;
	/**预出库单号*/
	@Excel(name = "预出库单号", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "预出库单号")
	private String orderNo;

	/**出库时间*/
	@Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "出库时间")
	private Date stockInTime;
	/**业务员*/
	@Excel(name = "业务员", width = 15)
	@ApiModelProperty(value = "业务员")
	private String stockOutUser;
	/**出库人id*/
	@Excel(name = "出库人id", width = 15)
	@ApiModelProperty(value = "出库人id")
	private String stockOutUserid;

	/**'客户id'*/
	@ApiModelProperty(value = "客户id")
	private String userid;
	/**'客户姓*/
	@Excel(name = "客户", width = 15)
	@ApiModelProperty(value = "客户")
	private String user;

	@Excel(name = "电话", width = 15  ,needMerge = true )
	@ApiModelProperty(value = "电话")
	private String phone;
	@Excel(name = "地址", width = 15  ,needMerge = true )
	@ApiModelProperty(value = "地址")
	private String address;

	@Excel(name = "交货方式", width = 15,needMerge = true )
	@ApiModelProperty(value = "交货方式")
	private String toType;
	@Excel(name = "车号/联系方式", width = 15,needMerge = true )
	@ApiModelProperty(value = "车号/联系方式")
	private String carno;
	//渠道
	@Excel(name = "渠道", width = 15,dicCode = "ch_channel",needMerge = true)
	@Dict(dicCode = "ch_channel")
	@ApiModelProperty(value = "渠道")
	private String channel;

	//账号
	@Excel(name = "账号", width = 15,dicCode = "ch_account_no", needMerge = true)
	@Dict(dicCode = "ch_account_no")
	@ApiModelProperty(value = "账号")
	private String accountno;

	/**备注*/
	@Excel(name = "备注", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "备注")
	private String remarks;


	@Excel(name = "账期号", width = 15  ,needMerge = true  )
	@ApiModelProperty(value = "账期号")
	private String period;

	@Excel(name = "账期状态", width = 15 ,needMerge = true )
	@ApiModelProperty(value = "账期状态")
	private String periodState;

	@Excel(name = "基地管理员", width = 15   ,needMerge = true )
	@ApiModelProperty(value = "基地管理员")
	private String baseMange;
	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "基地管理员时间" ,format = "yyyy-MM-dd HH:mm:ss"  ,needMerge = true )
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "基地管理员时间")
	private Date baseMangeTime;

	@Excel(name = "运管备案", width = 15  ,needMerge = true )
	@ApiModelProperty(value = "运管备案")
	private String pipMange;
	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "运管备案时间" ,format = "yyyy-MM-dd HH:mm:ss"  ,needMerge = true )
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "运管备案时间")
	private Date pipMangeTime;

	@Excel(name = "库管确认出库", width = 15   ,needMerge = true )
	@ApiModelProperty(value = "库管确认出库")
	private String storeSure;

	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "库管确认时间" ,format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true )
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "库管确认时间")
	private Date storeSureTime;

	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "提交审核时间" ,format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true )
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "提交审核时间")
	private Date topresstime;

	@Excel(name = "总数量", width = 15  )
	@ApiModelProperty(value = "总数量")
	private BigDecimal  totalnumber ;
	@Excel(name = "总金额", width = 15  )
	@ApiModelProperty(value = "总金额")
	private BigDecimal totalprice;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新日期*/
	@Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username" ,needMerge = true )
	@Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**更新人*/
//	@Excel(name = "更新人", width = 15)
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/** 状态（-1待确认，0审核中，1已出库，9删除 ）*/
//	@Excel(name = "状态（-1待确认，0审核中，1已出库，9删除 ）", width = 15)
	@ApiModelProperty(value = "状态（-1待确认，0审核中，1已出库，-2删除  ）")
	private Integer state;
	
	@ExcelCollection(name="预出库单子表")
	@ApiModelProperty(value = "预出库单子表")
	private List<FlowerOutorderPreinfo> flowerOutorderPreinfoList;
	
}
